package com.cnjson.sensor;


import com.cnjson.sensor.nio.SocketServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Application {


    public static void main(String[] args) {

        ConfigurableApplicationContext context=SpringApplication.run(Application.class, args);
        SocketServer socketServer=context.getBean(SocketServer.class);
        socketServer.start();
        System.out.println("--------------->服务正在启动");
    }


}
